home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm9_2_1
- Caption = "Create College List"
- ClientHeight = 1335
- ClientLeft = 1125
- ClientTop = 2040
- ClientWidth = 5055
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1335
- ScaleWidth = 5055
- Begin VB.CommandButton cmdDone
- Caption = "Done"
- Height = 375
- Left = 3720
- TabIndex = 7
- Top = 840
- Width = 1215
- End
- Begin VB.CommandButton cmdAddCollege
- Caption = "Add College to File"
- Height = 375
- Left = 120
- TabIndex = 6
- Top = 840
- Width = 1815
- End
- Begin VB.TextBox txtYear
- Height = 285
- Left = 4320
- TabIndex = 5
- Top = 480
- Width = 615
- End
- Begin VB.TextBox txtState
- Height = 285
- Left = 1680
- TabIndex = 3
- Top = 480
- Width = 375
- End
- Begin VB.TextBox txtCollege
- Height = 285
- Left = 1680
- TabIndex = 1
- Top = 120
- Width = 3255
- End
- Begin VB.Label lblYear
- Alignment = 1 'Right Justify
- Caption = "Year founded:"
- Height = 255
- Left = 3000
- TabIndex = 4
- Top = 480
- Width = 1215
- End
- Begin VB.Label lblState
- Alignment = 1 'Right Justify
- Caption = "State located:"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 480
- Width = 1455
- End
- Begin VB.Label lblName
- Alignment = 1 'Right Justify
- Caption = "Name of College:"
- Height = 255
- Left = 0
- TabIndex = 0
- Top = 120
- Width = 1575
- End
- Attribute VB_Name = "frm9_2_1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim recordNum As Integer
- Private Sub cmdAddCollege_Click()
- 'Write a record into the file COLLEGES.TXT
- Dim college As collegeData
- college.nom = txtCollege.Text
- college.state = txtState.Text
- college.yrFounded = Val(txtYear.Text)
- recordNum = recordNum + 1
- Put #1, recordNum, college
- txtCollege.Text = ""
- txtState.Text = ""
- txtYear.Text = ""
- txtCollege.SetFocus
- End Sub
- Private Sub cmdDone_Click()
- Close #1
- End
- End Sub
- Private Sub Form_Load()
- 'Create COLLEGES.TXT
- Dim college As collegeData
- Open App.Path & "\COLLEGES.TXT" For Random As #1 Len = Len(college)
- recordNum = 0
- End Sub
-